package org.lboot.core.domain;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @author Kindear
 * @param <T>
 */
@Data
@Schema(description = "分页查询结果对象")
public class PageResultDTO<T> {

    /**
     * 当前页
     */
    @Schema(description = "当前页", example = "1")
    private Integer number;

    /**
     * 每页的数量
     */
    @Schema(description = "每页的数量", example = "10")
    private Integer size;

    /**
     * 总记录数
     */
    @Schema(description = "总记录数", example = "100")
    private Long totalElements;

    /**
     * 总页数
     */
    @Schema(description = "总页数", example = "10")
    private Integer totalPages;

    /**
     * 结果集
     */
    @Schema(description = "分页查询的结果集")
    private List<T> content;

}
